package com.atguigu.service;

import com.atguigu.common.exception.OrderReservationsException;
import com.atguigu.pojo.Order;
import com.atguigu.vo.HotSetmealVo;
import com.atguigu.vo.OrderVo;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderInfoService {
    Order submitReservation(OrderVo orderVo) throws Exception;

    //查询所有套餐名称 预约数量 占比
    List<HotSetmealVo> selectHotSetmeal();

    //本月出游数
    Integer selectThisMonthVisitsNumber(String dateString);

    //本月预约数
    Integer selectThisMonthOrderNumber(String dateString);

    //本周出游数
    Integer selectThisWeekVisitsNumber(Date weekMonday, Date lastDay);

    //本周预约数
    Integer selectThisWeekOrderNumber(Date weekMonday, Date lastDay);

    // 今日预约数 查询今日的预约数 count
    Integer selectOrderType(Date date);

    Integer selectTodayVisitsNumber(Date day);

    Order findById(Integer id);
}
